
// utils/cacheBus.ts
//比事件总线和浏览器缓存轻量，可用于非关系组件间的数据传递
// 临时缓存数据供组件挂载时读取
let cachedData: any = null;

export function setCachedData(data: any) {
  cachedData = data;
}

export function getCachedData(): any {
  return cachedData;
}

export function clearCachedData() {
  cachedData = null;
}

